﻿using Microsoft.AspNetCore.Mvc.Rendering;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ModelToDto.Managemen
{
    public class RoleMenuDTO
    {
        public int? RoleID { get; set; }
        public string? RoleName { get; set; }
        /// <summary>
        /// 返回选中和没选中的菜单
        /// </summary>
        public List<MenuList> MenueListItems { get; set; } = new List<MenuList>();
    }
    public class MenuList
    {

        /// <summary>
        /// 主键
        /// </summary>
        public int Meu_Id { get; set; }
        /// <summary>
        /// 父级ID
        /// </summary>
        public int ParentId { get; set; }
        /// <summary>
        /// 菜单名称
        /// </summary>
        public string? Meu_Name { get; set; }


        public bool IsCheck { get; set; }
        public List<MenuList>? ChildList { get; set; } = new List<MenuList>();

    }
}
